package com.bookstore.bauhinia.book.service;

import com.bookstore.bauhinia.pojo.Book;

import java.util.List;

public interface BookService {

    int insert(Book record);

    Book selectByPrimaryKey(Integer id);

    int deleteByPrimaryKey(Integer id);

    int updateByPrimaryKey(Book record);

    List<Book> getAllBooks();

    List<Book> getBooksByCategoryId(Integer categoryId);
}